package by.semerikov.parser;

import by.semerikov.parts.RequestLine;

public class RequestLineParser implements IStringParser<RequestLine> {

	@Override
	public RequestLine getObject(String line) {
		RequestLine result = new RequestLine();
		String[] array = line.split(" ");
		result.setTypeofrequest(array[0]);
		result.setPath(array[1]);
		return result;
	}

}
